<?php
/**
 *
 * 资源路径管理
 *
 * @author: hjh <hjh@jf.com>
 *
 * Date: 2017/7/26
 * Time: 11:16
 */

namespace Common;

class ResourcePathManager
{
    const OSS_IMAGE_URL = 'http://jfmeite.oss-cn-hangzhou.aliyuncs.com/';
    const OSS_TEST_IMAGE_URL = 'http://meitetest.oss-cn-hangzhou.aliyuncs.com/';

    public static function getOssImageUrl()
    {
        if (IS_ONLINE === false) {
            return self::OSS_TEST_IMAGE_URL;
        }

        return self::OSS_IMAGE_URL;
    }

    public static function getUserHeadSavePath()
    {
        return 'head/';
    }

    public static function getShareConfigSavePath()
    {
        return 'config/share/';
    }

    public static function getActivityConfigSavePath()
    {
        return 'config/ac/';
    }

    public static function getAdvertisingSavePath()
    {
        return 'config/ad/';
    }

    public static function getIndexFeedBannerSavePath()
    {
        return 'config/banner/';
    }

    public static function getIndexFeedSkipSavePath()
    {
        return 'config/skip/';
    }

    public static function getMatterActivitySavePath()
    {
        return 'activity/matter/';
    }

    public static function getSignQrcodeSavePath(){
        return 'config/qrcode/';
    }

    public static function getEcommerceConfigSavePath()
    {
        return 'config/ecomm_ad/';
    }

    public static function getTagChildConfigSavePath()
    {
        return 'config/tag_child/';
    }

    public static function getFirmwareSavePath(){
        return 'mobile/firmware/';
    }

    public static function getUserMemberSavePath()
    {
        return 'member/';
    }

    public static function getAppScreenImageSavePath()
    {
        return 'screen/';
    }

    public static function getActCoverImgSavePath(){
        return '/data/pic/act/cover/';
    }

    public static function getActContentImgSavePath(){
        return '/data/pic/act/content/';
    }

    public static function getScreenSavePath(){
        return '/data/pic/screen/';
    }

    public static function getADSImgSavePath(){
        return '/data/pic/ads/';
    }

    public static function getShopImgSavePath(){
        return '/data/pic/shop/cover/';
    }

    public static function getShopContentImgSavePath(){
        return '/data/pic/shop/content/';
    }


    public static function getCateIconSavePath(){
        return '/data/pic/cate/';
    }

    public static function getCouponBgImgSavePath(){
        return '/data/pic/coupon/bg/';
    }

    public static function getTopicCoverSavePath(){
        return 'topic/cover/';
    }
}
